package com.csms.controller;

import com.csms.dto.ApiResult;
import com.csms.entity.StoreCategory;
import com.csms.service.StoreCategoryService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * author: yj
 * Date: 2023-02-0210:37
 */
@RestController
@AllArgsConstructor
public class StoreCategoryController {
    private final StoreCategoryService storeCategoryService;

    @GetMapping("store/category/list")
    public ApiResult GetStoreCategoryList(){
        List<StoreCategory> list = storeCategoryService.GetStoreCategoryList();
        return ApiResult.ok("ok",list);
    }
}
